package com.lehuo.util;

import java.io.UnsupportedEncodingException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class StringUtil {
	public static String toutf(String str) {
		try {
			str = new String(str.getBytes("ISO-8859-1"),"utf-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return str;
	}
	
    public static String getTime() {
        long time = new Date().getTime();
        SimpleDateFormat time1 = new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss");
        return time1.format(time);
    }
}
